-- GENERATED SPELL FOR [Toshley Flying Machine] --


function spell0_22089(pUnit, Event) --@Rocket Launcher,n/a--
pUnit:FullCastSpellOnTarget(38083,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22089', 17000, 1)
end

function Sorts_22089(pUnit, Event)
local choix_sorts_22089 = math.random(0, 0)
if choix_sorts_22089 == 0 then
pUnit:RegisterEvent('spell0_22089', 1, 1)
end
end

function mob22089_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22089', math.random(1500, 3000), 1)
end

function mob22089_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22089_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22089_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22089, 1, 'mob22089_Action')
RegisterUnitEvent(22089, 2, 'mob22089_Leave')
RegisterUnitEvent(22089, 3, 'mob22089_Kill')
RegisterUnitEvent(22089, 4, 'mob22089_Die')
